package com.dragon8869.myspringboot.dao;

import com.dragon8869.myspringboot.entity.AyUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AyUserDao {

    AyUser findByNameAndPassword(@Param("name") String name, @Param("password") String password);

    int createUser(AyUser ayUser);

    int updateUser(AyUser ayUser);

    int deleteUser(Integer id);

}
